package com.iot.gateway.config;

import com.iot.gateway.filter.GlobalRequestFilter;
import com.iot.gateway.properties.GatewayConfigProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 网关配置
 */
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(GatewayConfigProperties.class)
public class GatewayConfiguration {
	
	@Bean
	public GlobalRequestFilter globalRequestFilter() {
		return new GlobalRequestFilter();
	}
	
//	@Bean
//	public AuthGlobalFilter authorizationGlobalFilter(StringRedisTemplate redisTemplate,
//			GatewayExclusionUrlProperties gatewayExclusionUrlProperties) {
//		return new AuthGlobalFilter(redisTemplate, gatewayExclusionUrlProperties);
//	}
	

}
